﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Duckbill
{
    public enum TileType
    {
        empty,
        solid,
        jumpItem,
        gunItem,
        enemySpawn,
    }

    public class Tile : GameObject
    {
        public static string[] spriteList = {
                                                "null",
                                                "tile1",
                                                "tile2",
                                                "tile1",
                                                "gunTile",
                                                "null",
                                            };
        public TileType tileType = TileType.empty;

        public Tile(int type, Vector2 pos)
            : base(spriteList[type], pos)
        {
            this.type = ObjectType.tile;
            switch (type)
            {
                case 1:
                case 2:
                    tileType = TileType.solid;
                    break;
                case 3:
                    tileType = TileType.jumpItem;
                    break;
                case 4:
                    tileType = TileType.gunItem;
                    break;
                case 5:
                    tileType = TileType.enemySpawn;
                    break;
                default:
                    tileType = TileType.empty;
                    break;
            }
        }

    }
}
